/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package caintra.Sapra.Model;

/**
 *
 * @author cobain
 */
public class Adeudo {

    private String comentarios;
    private int usuarioId;
    private int fk_empresaId;
    private int fk_periodoId;
    private Integer adeudo_empresaId;
    private double cantidad;

    public Adeudo(){
    }

    public void setComentario(String comentario){
       this.comentarios=comentario;
    }

    public void setUsuarioId(int usuario){
        this.usuarioId=usuario;
    }

    public void setfk_empresaId(int empid){
        this.fk_empresaId=empid;
    }

    public void setfk_periodo(int perid){
        this.fk_periodoId=perid;
    }

    public void setAdeudoId(Integer adeudoid){
        this.adeudo_empresaId=adeudoid;
    }

    public void setCantidad(double cant){
        this.cantidad=cant;
    }

    public String getComentario(){
        return comentarios;
    }

    public int getUsuarioId(){
        return this.usuarioId;
    }

    public int getEmpresaId(){
        return this.fk_empresaId;
    }

    public int getPeriodo(){
        return this.fk_periodoId;
    }

    public int getAdeudoEmpresaId(){
        return this.adeudo_empresaId;
    }

    public double getCantidad(){
        return this.cantidad;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (adeudo_empresaId != null ? adeudo_empresaId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Abono)) {
            return false;
        }
        Adeudo other = (Adeudo) object;
        if ((this.adeudo_empresaId == null && other.adeudo_empresaId != null) || (this.adeudo_empresaId != null && !this.adeudo_empresaId.equals(other.adeudo_empresaId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "" + adeudo_empresaId + "";
    }

}
